﻿using UnityEngine;
using Core;

public class Init:MonoBehaviour
{
    private void Awake()
    {
        System.Globalization.CultureInfo.CurrentCulture = new System.Globalization.CultureInfo("en-US");

        GameObject.DontDestroyOnLoad(gameObject);

        Entry.Start();

    }

    private void Update()
    {
        World.Main.Update();
    }

    private void FixedUpdate()
    {
        World.Main.FixedUpdate();
    }

    private void OnDestroy()
    {
        World.Main?.Dispose();
        World.Main = null;
    }
}

